package cn.Liujialin.org.mapper;

import cn.Liujialin.basic.util.PageList;
import cn.Liujialin.org.domain.Department;
import cn.Liujialin.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    void save(Department department);

    void del(Long id);

    void update(Department department);

    Department findById(Long id);

    List<Department> findByAll();
    /*分页查询*/
    Long queryCount(DepartmentQuery query);
    List<Department> queryData(DepartmentQuery query);
    //批量
    void patchDelete(List<Long> ids);

    List<Department> queryTree();
}
